
#ifndef BOMB_H_
#define BOMB_H_

#include <stdio.h>
#include <stdlib.h>

#include "SDL.h"
#include "SDL_image.h"

#include "../include/game.h"

enum e_state {
	EXPLOSION = 0, SHORT, MIDDLE, BIG
};

typedef struct s_bomb * t_bomb;

// Returns the current position of the bomb
extern int bomb_get_xbomb(t_bomb player);
extern int bomb_get_ybomb(t_bomb player);

// Set the state of the next state of the bomb
extern void bomb_set_current_state(t_bomb bomb, enum e_state state);

// Load the bomb position from the map
extern void bomb_from_map(t_bomb bomb, t_map map);

// Display the bomb on the screen
extern void bomb_display(t_bomb bomb, SDL_Surface *screen);

#endif /* BOMB_H_ */
